#include "libndpfs.h"
#include <sys/time.h>
#include "command_list.h"

unsigned long elapsed(struct timeval* begin, struct timeval* end){
    long seconds = end->tv_sec - begin->tv_sec;
    long microseconds = end->tv_usec - begin->tv_usec;
    return seconds*1e6 + microseconds;
}

int main(){
    struct timeval begin, end;
    gettimeofday(&begin, 0);

    //traditional method(i.e. send_folder_iter)

    //ndpfs method
    set_ndp_path("/mnt/f2fs/files");
    ndp_by_path("/mnt/f2fs/files", DIRSEARCH_C);
}